package com.cungmua.app.model.response;

import com.cungmua.app.model.Ward;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
public class WardResponse extends CungMuaResponse {
    private List<Ward> wardList;

    public WardResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        super(message, code);
    }

    @JsonProperty("Data")
    public void setData(List<Ward> data) {
        this.wardList = data;
    }

    @Override
    public List<Ward> getData() {
        return wardList;
    }
}
